<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='盘点差异清单', subtext='管理系统中盘点差异数据'" style="overflow: hidden;">

<head>
  <title>盘点差异清单</title>
</head>
<body style="overflow: hidden;">

  <th:block layout:fragment="content">
    <div  id="query-area" class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">单号</label>
              <div class="col-sm-9">
                <input type="text" id="documentNumber" name="documentNumber" placeholder="输入单号或参考号搜索" class="form-control" />
              </div>
            </div>
          </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">物料编码</label>
                    <div class="col-sm-9">
                        <input type="text" id="material" name="material" placeholder="输入物料编码或名称搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">容器</label>
                    <div class="col-sm-9">
                        <input type="text" id="containernum" name="containernum" placeholder="输入容器号搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">供应商</label>
                    <div class="col-sm-9">
                        <input type="text" id="supplier" name="supplier" placeholder="输入供应商编码搜索" class="form-control" />
                    </div>
                </div>
            </div>


            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-lg-4 label-width-1">盘点日期起</label>
                    <div class="col-lg-8"> <input id="fromdate" name="fromdate" class="form-control form_datetime">
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-lg-4 label-width-1">至</label>
                    <div class="col-lg-8"> <input id="todate" name="todate" class="form-control form_datetime">
                    </div>
                </div>
            </div>


          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-lg-3">状态</label>
              <div class="col-lg-9">
                <select id="status" name="status" class="form-control">
                  <option value="DIFF">差异清单</option>
                  <option value="SHOWALL">全部</option>
                </select>
              </div>
            </div>
          </div>
          <!--
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-lg-3">物料</label>
              <div class="col-lg-9">
                <select id="material" name="material" class="form-control select2">
                  <option value="">请选择</option>
 	                  <option th:each="a : ${@DATAS.materials}" th:value="${a.id}" th:text="${a.name}" th:selected="${params['material'] == ''+a.id}" />
                </select>
              </div>
            </div>
          </div>
           -->
        <div class="row m-t">
          <div class="col-lg-12 seach-button">
            <div class="pull-right">
              <button type="submit" id="search" class="btn btn-primary">
                <i class="fa fa-search"></i> 搜索
              </button>
              <button type="reset" id="clear" class="btn btn-danger">
                <i class="fa fa-remove"></i> 清除
              </button>
            </div>
          </div>
        </div>
        </div>
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>
              <!--
              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="添加发运订单">
                <i class="fa fa-fw fa-plus"></i> 添加
              </a>
              -->
                <div class="pull-right">
                    <a class="btn btn-info export" th:title="导出数据">
                       <i class="fa fa-fw fa-cloud-upload"></i> 导出数据
                    </a>
                </div>
              </div>

            </h2>
            <div id="tableWrapper">
                <table id="table" class="table table-striped table-hover table-bordered table-fixed">
                    <thead style="position:sticky;top:0;z-index:10;">
                    <tr>
                        <th style="width:50px;">
                            <a href="javascript:;" class="selectAll" title="全选">全选</a>
                        </th>

                      <th style="width:100px;">单号</th>
                      <th style="width:80px;">类型</th>
                      <th style="width:70px;">行号</th>
                      <th style="width:110px;">物料编码</th>
                      <th style="width:160px;">物料名称</th>
                      <th style="width:70px;">供应商</th>
                      <th style="width:80px;">WBS</th>
                      <th style="width:110px;">库位</th>
                      <th style="width:70px;">容器编码</th>
                      <th style="width:80px;">库存数量</th>
                      <th style="width:80px;">盘点数量</th>
                      <th style="width:70px;">差异数量</th>
                      <th style="width:140px;">盘点时间</th>
                      <th style="width:60px;">盘点人</th>
                      <th style="width:100px;">盘点说明</th>

                    <th style="width:60px;">状态</th>


                  </tr>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <form id="printForm" method="post" style="display: none" th:action="@{|${baseUrl}/print|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="exportForm" method="post" style="display: none" th:action="@{|${baseUrl}/export|}">
    </form>
  </th:block>

  <th:block layout:fragment="scripts">
    <script th:inline="javascript">
      var VALUES_MAP_DICT_TYPE = /*[[${@CODES.valuesMapOfType('CO_TYPE')}]]*/ {};
      var VALUES_MAP_DICT_STATUS = /*[[${@CODES.valuesMapOfType('CO_STATUS')}]]*/ {};
    </script>
      <script th:src="@{|${theme}/js/app/inventory/codiff_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
      <script th:src="@{|${theme}/plugins/datetimepicker/bootstrap-datetimepicker.min.js?v=${applicationVersion}|}" th:inline="javascript"></script>
      <script th:src="@{|${theme}/plugins/datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js?v=${applicationVersion}|}" th:inline="javascript"></script>
  </th:block>
</body>

</html>
